package org.dromara.hrp.domain.bo;

import org.dromara.hrp.domain.HrpLead;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 线索商机业务对象 hrp_lead
 *
 * @author wenrui
 * @date 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HrpLead.class, reverseConvertGenerate = false)
public class HrpLeadBo extends BaseEntity {

    /**
     * 线索ID
     */
    @NotNull(message = "线索ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 线索名称
     */
    @NotBlank(message = "线索名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long partnerId;

    /**
     * 归属销售
     */
    private Long salesId;

    /**
     * 客户来源
     */
    private String source;

    /**
     * 客户阶段
     */
    private String stage;

    /**
     * 失去原因
     */
    private String lostReason;

    /**
     * 下次跟单时间
     */
    private Date nextTime;

    /**
     * 备注
     */
    private String remark;


}
